package com.winning.pmph.config;

import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 自定义配置
 * @author yjh
 *
 */
@Configuration
@ConfigurationProperties()
public class CommonConfig {

    public static String increaseServer;

    public static String ffmpegUrl;
    
    public static String ffprobeUrl;

    public static String rsUrl;

	@Value("${increase_server}")
	public void setIncreaseServer(String path) {
		increaseServer = path;
		System.out.println(increaseServer);
	}
	
	@Value("${ffmpeg-url}")
	public void setFfmpegUrl(String path) {
		ffmpegUrl = path;
		System.out.println(ffmpegUrl);
	}
	
	@Value("${ffprobe-url}")
	public void setProbeUrl(String path) {
		ffprobeUrl = path;
		System.out.println(ffprobeUrl);
	}

	@Value("${rs-url}")
	public void setRsUrl(String rsUrl) {
		CommonConfig.rsUrl = rsUrl;
	}
}
